<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<#include "../../common/res.html">
		
		<script type="text/javascript">
			var id_sbj = "${id_sbj}";
			var rowNum = "${rowNum!}";
			
			function doDelete(rowNum){
				if(confirm("确定删除?")){
					window.location.href='${s.base}/data/delete.html?id_sbj='+id_sbj+'&rowNum='+rowNum ;
				}
			}
		</script>
	</head>
	
	<body class="bg">
		<#include "../../common/top.html">
		
		<div class="content">
			<div class="block-nav">
				<#include "../../common/nav.html">
			</div>
			
			<div class="block-content" >
				
				<div class="block-content-nav">
					<span class="title">专题管理</span>
				</div>
				
				<div class="block-content-description">
					<span>
						数据管理 添加/修改
					</span>
				</div>
				
				<div class="block-content-content">
					<form class="fm-form" action="${s.base}/data/doMerge.html" method="post">
						<input name="id_sbj" type="hidden" value="${id_sbj}"/>
						<input name="rowNum" type="hidden" value="${rowNum!}"/>
						<ul>
							<#list dataRow.dataList as data>
							<li>
								<label>${itemList[data_index].name!} :</label>
								<input name="dataList[${data_index}].id" type="hidden" value="${(data.id)!}"/>
								<input name="dataList[${data_index}].idSbj" type="hidden" value="${(data.idSbj)!}"/>
								<input name="dataList[${data_index}].idItem" type="hidden" value="${(data.idItem)!}"/>
								<input name="dataList[${data_index}].rowNum" type="hidden" value="${(data.rowNum)!}"/>
								<#if itemList[data_index].type=="blob">
								<textarea name="dataList[${data_index}].valueBlob" id="valueBlob_${data_index}" style="width:452px;height:300px;">${(data.valueBlob)!}</textarea>
								<#else>
								<input name="dataList[${data_index}].value" type="text" value="${(data.value)!}"/>
								</#if>
							</li>
							</#list>
						</ul>
						<div style="margin-left:75px;margin-top: 20px;">
							<input class="btn" type="submit" value="保 存"/>
						</div>
					</form>
				</div>
			</div>
			
			<div class="clearfloat"></div>
		</div>
		
		<#include "../../common/footer.html">
		
		<script type="text/javascript">
			<#list dataRow.dataList as data>
			<#if itemList[data_index].type=="blob">
			var editor = simpleKindeditorId("valueBlob_${data_index}");
			</#if>
			</#list>
		</script>
		
	</body>
	
</html>
